package jin.si.com.reflect;

/**
 * @description:
 * @ClassName User
 * @Author MT
 * @Date 2021/6/30 9:13
 **/
public class User {

    private int age=10;
    private String pwd;
    public String name="臭宝宝";
    public String money="10000";

    public User(){
        System.out.println("无参构造方法");
    }

    public User(int age,String pwd){
        this.age=age;
        this.pwd=pwd;
        System.out.println("有参构造方法");
    }

    private User(String name){
        this.name=name;
        System.out.println("私有构造方法");
    }


    private void eat(){
        System.out.println("臭宝宝吃粉条");
    }

    public void play(){
        System.out.println("臭宝宝玩游戏");
    }

    public int sum(int a,int b){
        return a+b;
    }


}
